import { _decorator, Component, Node, Vec2, Vec3, UITransform, Size } from 'cc';
import { BasicComponet } from '../../Init/Basic/BasicComponet';
const { ccclass, property } = _decorator;

@ccclass('EndArea2d')
export class EndArea2d extends BasicComponet {

    setData(d: { parent: Node, p: Vec3, r: Vec3, s: Vec2 }) {
        this.node.parent = d.parent;
        this.node.setPosition(d.p);
        let trans = this.node.getComponent(UITransform);
        trans.setContentSize(d.s.x, d.s.y);
    }
}

